Skip to main content

CountDistinct

CountDistinct[list] gives the number of distinct elements that appear in list.

CountDistinct[list,test] applies test to pairs of elements to determine whether they should be considered equivalent.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.